<div class="container-fluid am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
            <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 我的广告包</div>
           <!--  <p class="page-header-description">Amaze UI 含近 20 个 CSS 组件、20 余 JS 组件，更有多个包含不同主题的 Web 组件。</p> -->
        </div>
        <div class="am-u-lg-3 tpl-index-settings-button">
            <a href="mine_field_in.html">
                <button type="button" class="page-header-button">明细</button>
            </a>
        </div>
    </div>
</div>
<div class="row-content am-cf">
    <div class="row  am-cf">
        <div class="am-u-sm-12 am-u-md-12">
            <div class="am-u-sm-6">
            	
            	
                <div class="widget widget-primary am-cf">
                    <div class="widget-statistic-header" style="margin-top:15px;">
                        余额（USD）
                    </div>
                    <div class="widget-statistic-body" style="margin-top:15px;">
                        <div class="widget-statistic-value">
                            ￥ {$token.USD}
                        </div>
						<button  type="button" class="page-header-button" style="border-radius:15px;" data-am-modal="{target: '#my-alert', closeViaDimmer: 0,}">
						   运行
						</button>

						<div class="am-modal am-modal-alert" tabindex="-1" id="my-alert">
						  <div class="am-modal-dialog">
							<div class="am-modal-hd" style="color: #000000">广告运行
                                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
                            </div>
							<div class="am-modal-bd">
                                <form class="am-form tpl-form-line-form">
                                    <div class="am-form-group">
                                        <label for="user-name" class="am-u-sm-3 am-form-label"style="padding: 0px;color:#656565;">我的广告包</label>
                                        <div class="am-u-sm-9"style="color: red;">
                                            <b >￥ {$token.USD}</b>USD
                                        </div>
                                    </div>
                                    <div class="am-form-group">
                                        <label class="am-u-sm-3 am-form-label" style="padding-right:0px;color:#656565">广告包运行数量</label>
                                        <div class="am-u-sm-9">
                                            <input type="number" id="number_advertisement" placeholder="数量不能低于500个，且为500的倍数。" style="color: #000000">
                                        </div>
                                    </div>
                                    <div class="am-form-group">
                                        <label class="am-u-sm-3 am-form-label" style="padding-right:0px;color:#656565">支付密码</label>
                                        <div class="am-u-sm-9">
                                            <input type="password" id="paypwd" placeholder="请输入支付密码" style="color: #000000">
                                        </div>
                                    </div>
                                    <div class="am-form-group">
                                        <label class="am-u-sm-3 am-form-label" style="padding-right:0px;color:#656565">使用总量(USD)</label>
                                        <div class="am-u-sm-9" style="color: red;">
                                            <span id="procedures">0.0000</span>
                                        </div>
                                    </div>
                                </form>

							</div>
							<div class="am-modal-footer">
                                 <input type="hidden" id="price" value="{$price}" style="color: #000000">
							   <span  id="submission" class="am-modal-btn">确认运行</span>
							</div>
						  </div>
						</div>
                    </div>
                </div>
                
                
            </div>
            <div class="am-u-sm-6">
                <div class="widget widget-purple am-cf">
                    <div class="widget-statistic-header" style="margin-top:15px;">
                        等待划转（USD）

                    </div>
                    <div class="widget-statistic-body" style="margin-top:15px; width: ;">
                        <div class="widget-statistic-value">
                            ￥ {$token.YUSD}
                        </div>
                        <button  type="button"class="page-header-button" style=" border-radius:15px;"data-am-modal="{target: '#my-alert_1', closeViaDimmer: 0,}">
                           划转
                        </button>

                        <div class="am-modal am-modal-alert" tabindex="-1" id="my-alert_1">
                          <div class="am-modal-dialog">
                            <div class="am-modal-hd" style="color: #000000">
                               划转到数字钱包
                                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
                            </div>
                            <div class="am-modal-bd" >
                                 <form class="am-form tpl-form-line-form">
                                    <div class="am-form-group">
                                        <label for="user-name" class="am-u-sm-3 am-form-label"style="padding: 0px;color:#656565;">当前可划转</label>
                                        <div class="am-u-sm-9"style="color: red;">
                                            <b >{$token.YUSD}</b>USD
                                        </div>
                                    </div>
                                    <div class="am-form-group">
                                        <label class="am-u-sm-3 am-form-label" style="padding-right:0px;color:#656565">划转到数字钱包</label>
                                        <div class="am-u-sm-9">
                                            <input type="number" id="transfer_num" placeholder="请输入数量" style="color: #000000">
                                        </div>
                                    </div>
                                    <div class="am-form-group">
                                        <label class="am-u-sm-3 am-form-label" style="padding-right:0px;color:#656565">支付密码</label>
                                        <div class="am-u-sm-9">
                                            <input type="password" id="pwd" placeholder="请输入支付密码" style="color: #000000">
                                        </div>
                                    </div>
                                </form>


                            </div>
                            <div class="am-modal-footer">
                              <span id="transfer" class="am-modal-btn">确认划转</span>
                            </div>
                          </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row am-cf">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-8 widget-margin-bottom-lg" style="width: 100%;">
            <div class="widget am-cf widget-body-lg">
                <div class="widget-body  am-fr">
                    <div class="am-scrollable-horizontal ">
                        <div id="toolbar" class="toolbar">

                            <a class="btn btn-primary" href="javascript:;"><i class="fa fa-user"></i> 总矿机数量 : {$num}</a>
                            <a class="btn btn-success" href="javascript:;"><i class="fa fa-play"></i> 正在运行数量 : {$total}</a>
                            <a class="btn btn-danger" href="javascript:;"><i class="fa fa-dollar"></i> 今日产值 : {$today}</a>
                        </div>
                        <table id="table" data-toolbar="#toolbar" data-search="false" data-show-refresh="false" data-show-toggle="false" data-show-columns="false" data-show-export="false" data-detail-view="false" data-detail-formatter="detailFormatter" data-minimum-count-columns="2" data-pagination="true" data-id-field="id" data-page-list="[10, 25, 50, 100, ALL]" data-show-footer="false" data-url="mineral/mymineral" data-common-search='false'>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    var input = document.getElementById('number_advertisement')
    var div = document.getElementById('procedures');
    var price=document.getElementById('price').value;
    input.oninput = function(){
        div.innerHTML = input.value*price
    }
 </script>

